package com.auxgroup.smarthome.business.vo;

import com.auxgroup.smarthome.enterpriseapi.responsebody.WIFIDeviceList;
import io.swagger.annotations.ApiModelProperty;

/**
 * Created by kevinchen on 2017/8/31.
 */
public class DeviceDetailVo {
    @ApiModelProperty("mac地址")
    private String mac;
    private String did;
    @ApiModelProperty("是否在线")
    private boolean online;
    @ApiModelProperty("最近在线时间，10位时间戳")
    private long onlineLatest;
    @ApiModelProperty("备注，JSON格式内容：{deviceModel:string, deviceSn:string, isHang:string}")
    private String remark;
    @ApiModelProperty("维度")
    private String latitude;
    @ApiModelProperty("经度")
    private String longitude;
    @ApiModelProperty("创建时间")
    private long createdAt;

    public DeviceDetailVo() {
    }

    public DeviceDetailVo(WIFIDeviceList.WIFIDeviceInfo wifiDeviceInfo) {
        this.mac = wifiDeviceInfo.getMac();
        this.did = wifiDeviceInfo.getDid();
        this.online = wifiDeviceInfo.isIs_online();
        this.onlineLatest = wifiDeviceInfo.getOnline_latest();
        this.remark = wifiDeviceInfo.getRemark();
        this.latitude = wifiDeviceInfo.getLatitude();
        this.longitude = wifiDeviceInfo.getLongitude();
        this.createdAt = wifiDeviceInfo.getCreated_at();
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public String getDid() {
        return did;
    }

    public void setDid(String did) {
        this.did = did;
    }

    public boolean isOnline() {
        return online;
    }

    public void setOnline(boolean online) {
        this.online = online;
    }

    public long getOnlineLatest() {
        return onlineLatest;
    }

    public void setOnlineLatest(long onlineLatest) {
        this.onlineLatest = onlineLatest;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public long getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(long createdAt) {
        this.createdAt = createdAt;
    }

}
